<?php
	CLASS OviStorelistAction extends BaseAction{
		public function index(){
			$id = $_GET['s_id'];
			$result =M("shangpu")->join("vip ON vip.v_id = shangpu.s_broker")->where("s_id=$id")->join("district ON district.d_id = shangpu.s_district")->select();			
			$v_id = $result['0']['v_id'];
			$s_name = $result['0']['s_name'];

			$rent = M("shangpu")->where("s_broker=$v_id")->limit("15")->field("s_name,s_d_rent,s_id")->select();
			$this->assign("rent",$rent);
			$newtj = M("shangpu")->where("is_jingpin")->order("s_id desc")->limit(15)->field("s_name,s_d_rent,s_id")->select();

			$lou = M("shangpu")->where("s_name = '$s_name'")->select();
			$this->assign("lou",$lou);
			$this->assign("result",$result);
			$this->assign("newtj",$newtj);
			//var_dump($newtj);exit;
			$this->display();
		}
		
		
		
	
	
	
	
	}


?>